let schema = PositionSchema;

// 查询全量的权限信息
export default defineEventHandler(async () => {
  // 按order排序  1 为升序 -1 为降序
  const res_list = await schema.find({}).sort({ order: 1 }).lean();
  return {
    data: res_list,
  };
});
